# frozen_string_literal: true

module Gitlab
  module VulnerabilityScanning
    # An AffectedComponent represents a software component that is affected
    # by a security advisory.
    class AffectedComponent
      attr_reader :name, :version, :purl_type, :type

      def initialize(name:, version:, purl_type:, type:)
        @name = name
        @version = version
        @purl_type = purl_type
        @type = type
      end
    end
  end
end
